package com.bootdo.xiao.suggest;

import com.sun.xml.internal.bind.v2.runtime.output.SAXOutput;

/**
 * @Auther: liuj
 * @Date: 2019/6/17 14:38
 * @Description:建议33：不要覆写静态方法
 */
public class Suggest33{
    public static void main(String[] args){
//        Base33 b = new Base33();
//        b.something();
//        Base33.anything();

        Base33 s = new Sub33();
        s.something();
        Base33.anything();
        Sub33.anything();

    }
}

class Base33{
    public void something(){
        System.out.println("父类方法");
    }

    public static void anything(){
        System.out.println("父类静态方法");
    }
}

class Sub33 extends Base33{
    public void something(){
        System.out.println("子类方法");
    }

    public static void anything(){
        System.out.println("子类静态方法");
    }
}
